<template>
  <div>
    <ColorSet @change="onChangeColor" :c="currActiveItem.color" title="字体颜色"/>
  </div>
</template>

<script>
import dataApi from '@/view/data-api-edit'
import ColorSet from '@/view/SetItems/ColorSet'
export default {
  components: {
    ColorSet
  },
  computed: {
    currActiveItem () {
      return dataApi.currActiveItem
    }
  },
  methods: {
    onChangeColor (v) {
      dataApi.currActiveItem.color = v
    }
  }
}
</script>

<style scoped>
.del-ico {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  color: #f52f2f;
}
.add-ico {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  color: #00b7ee;
  vertical-align: -5px;
}
.v-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.v-item {
  white-space: nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.del {
      vertical-align: -5px;
}
.n {
  vertical-align: middle;
}
</style>
